@echo off

call prepareEnv.bat

if exist ".\%STANDALONE_CASSANDRA_DIR%" (
	echo %STANDALONE_CASSANDRA_DIR% is existed, exit
	exit
)

echo %STANDALONE_CASSANDRA_DIR% is not existed, download and unpack
mvn dependency:unpack -Dartifact="%STANDALONE_CASSANDRA_ARTIFACT%" -DoutputDirectory=".\%STANDALONE_CASSANDRA_DIR%"